<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%//@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%//@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<fmt:setBundle var="b" basename="myapp" scope="session"/>
<form action="LoginAction" method="post">
	<table>
		<tr>
			<td>
				<fmt:message key="login.adminID" bundle="${ b }"/>
			</td>
			<td>
				<input type="text" name="adminID"/>
			</td>
		</tr>
		<tr>
			<td>
				<fmt:message key="login.password" bundle="${ b }"/>
			</td>
			<td>
				<input type="password" name="password"/>
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="<fmt:message key="login.submit" bundle="${ b }"/>"/>
			</td>
		</tr>
		<tr>
			<td>
				<% 
					boolean isLoginFail;
				
					if(request.getAttribute("isLoginFail") == null) isLoginFail = false;
					else isLoginFail = true;
					
					if(isLoginFail) {
						%>
							<fmt:message key="login.msg" bundle="${ b }"/>
						<%
					}
				%>
			</td>
		</tr>
	</table>
</form>
	
</body>
</html>